昨天介紹完 report 今天介紹 report 很常會使用的 templates 格式
<template id="report_template">
  <t t-call="web.external_layout">
    <div class="page">
      <h2>Your Report</h2>
      <table class="table table-condensed">
        <thead>
          <tr>
            <th>Name</th>
            <th>Field Value</th>
          </tr>
        </thead>
        <tbody>
          <t t-foreach="docs" t-as="o">
            <tr>
              <td><t t-esc="o.name"/></td>
              <td><t t-esc="o.field_name"/></td>
            </tr>
          </t>
        </tbody>
      </table>
    </div>
  </t>
</template>
明天我們來介紹一下 原生SQL語法